package pyip.lib.javalearn.aop.dynamicproxy.spring.aspectj.annotation;

import org.springframework.stereotype.Component;

import pyip.lib.javalearn.aop.dynamicproxy.Greeting;

@Component
public class GreetingAnnotationImpl implements Greeting {

    @Tag
    @Override
    public void sayHello(String name) {
        System.out.println("Hello! " + name);
    }

    @Tag
    public void goodMorning(String name) {
        System.out.println("Good Morning! " + name);
    }

    public void goodNight(String name) {
        System.out.println("Good Night! " + name);
    }

}